# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement(object):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "E路阳光（DIY版）"
    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["name"] = self.name
            data["company"] = "阳光保险集团"
            data["days"] = item["days"]
            data["people_count"] = "1"
            data["airplane_death"] = item["airplane_death"]
            data["train_death"] = item["train_death"]
            data["ship_death"] = item["ship_death"]
            data["passenger_death"] = item["passenger_death"]
            data["private_death"] = item["private_death"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql,data )